package es;

import cn.hutool.json.JSONUtil;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.builder.SearchSourceBuilder;


public class ESQuery {

    public EsCommonResult findAnnualFeeByApplyCode(String applyCode) {
        if (StringUtils.isEmpty(applyCode)) {
            return null;
        }
        SearchSourceBuilder builder = new SearchSourceBuilder();
        BoolQueryBuilder boolQuery = QueryBuilders.boolQuery().filter(QueryBuilders.termQuery("apply_code1", applyCode));
        builder.query(boolQuery);
        EsCommonParam params = new EsCommonParam(SearchBigDataConstant.PATENT_ANNUAL_FEE_INDEX, 0, builder.toString(), SearchBigDataConstant.ENV_1);
        return null;
    }

}
